﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="KeyPhrase.cs" company="Microsoft">
//   Microsoft
// </copyright>
// <summary>
//   Defines the KeyPhrase type.
// </summary>
// Copyright (c) Microsoft Corporation. All rights reserved.
// 
// THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, 
// EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES 
// OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
// ----------------------------------------------------------------------------------
// The example companies, organizations, products, domain names,
// e-mail addresses, logos, people, places, and events depicted
// herein are fictitious.  No association with any real company,
// organization, product, domain name, email address, logo, person,
// places, or events is intended or should be inferred.

// ATTENTION - THIS FILE CONTAINS THIRD PARTY OPEN SOURCE CODE: 3D Tag Cloud Widget for BlogEngine.NET
// IT IS CLEARED ONLY FOR LIMITED USE BY Doan Huynh FOR THE My Semantic Search PRODUCT.
// DO NOT USE OR SHARE THIS CODE WITHOUT APPROVAL PURSUANT TO THE MICROSOFT OPEN SOURCE SOFTWARE APPROVAL POLICY
// THE SOURCE CODE FOR 3D Tag Cloud Widget for BlogEngine.NET HAS BEEN MODIFIED
// --------------------------------------------------------------------------------------------------------------------

namespace MySemanticSearch.TagCloud
{
    /// <summary>
    /// A Key Phrase.
    /// </summary>
    public class KeyPhrase
    {
        /// <summary>
        /// Gets or sets Name.
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// Gets or sets Score.
        /// </summary>
        public float Score { get; set; }

        /// <summary>
        /// Gets or sets a value indicating whether a document is selected
        /// </summary>
        public bool IsSelected { get; set; }

        /// <summary>
        /// Returns the name of the keyphrase
        /// </summary>
        /// <returns>
        /// The name of the keyphrase
        /// </returns>
        public override string ToString()
        {
            return this.Name;
        }
    }
}
